package com.book.service;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.book.entity.Notify;
import com.book.mapper.NotifyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NotifyService extends ServiceImpl<NotifyMapper, Notify> {
    @Autowired
    NotifyMapper notifyMapper;
    public int insert(Notify notify) {
        return notifyMapper.insert(notify);
    }

    public Notify selectById(Integer id) {
        return notifyMapper.selectById(id);
    }

    public boolean deleteById(Integer notifyId) {
        return notifyMapper.deleteById(notifyId);
    }
    public List<Notify> selectAllNotify() {
        return notifyMapper.selectAllNotify();
    }
}
